package com.ozo.easy.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

/**
 * 部门视图对象
 *
 * @author ozo
 * @version 1.0
 * @date 2025-01-26 16:37:36
 */
@Data
@Schema(description = "部门视图对象")
public class SysDeptVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "上级部门id")
    private Long parentId;

    @Schema(description = "排序号")
    private Integer orderNum;

    @Schema(description = "是否启用")
    private Boolean enableFlag;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "子级")
    private List<SysDeptVO> children;

}
